package com.cy.ppj.model.enums;

import lombok.Getter;

/**
 * 交易类型
 */
public enum DealType {

    COMMISSION(AmountType.ADD_USABLE, "直推奖励", "{#customerName}（{#productName}）放款{#loanAmount}，佣金率{#commissionRate}%"),
    TEAM(AmountType.ADD_USABLE, "团队返佣", "{#borkerLevelName} {#userRealName} 的返佣，放款{#loanAmount}，返佣{#commissionRate}%"),
    DIAMOND_ALLOWANCE(AmountType.ADD_USABLE, "钻石津贴", "钻石会员 {#userRealName} 的返佣，放款{#loanAmount}，返佣{#commissionRate}%"),

    TEAM_COMMISSION_FIRST(AmountType.ADD_USABLE, "团队返佣", "来自一级成员{#nickName}的返佣，放款{#loanAmount}"),
    TEAM_COMMISSION_SECOND(AmountType.ADD_USABLE, "团队返佣", "来自二级成员{#nickName}的返佣，放款{#loanAmount}"),
    COMPANY_COMMISSION(AmountType.ADD_USABLE, "公司收佣", "{#customerName}（{#productName}）放款{#loanAmount}，佣金率{#rate}%－经纪人：{#nickName}"),
    WITHDRAW_APPLY(AmountType.USABLE_TO_FREEZE, "提现申请", "提现申请"),
    WITHDRAW_RETURN(AmountType.FREEZE_TO_USABLE, "提现退回", "提现退回"),
    WITHDRAW_SUCCESS(AmountType.SUB_FREEZE, "提现成功", "提现成功"),
    SYSTEM_REWARD(AmountType.ADD_USABLE, "系统奖励", "系统奖励"),
    SYSTEM_DEDUCT(AmountType.SUB_USABLE, "系统扣除", "系统扣除"),
    ;

    /**
     * 金额类型
     */
    @Getter
    private AmountType type;

    /**
     * 文本说明
     */
    @Getter
    private String text;
    @Getter
    private String expression;

    DealType(AmountType type, String text, String expression) {
        this.type = type;
        this.text = text;
        this.expression = expression;
    }


}
